﻿<Window x:Class="MetaDesigner.TermSetGroupPicker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Select the Group for the Term Set" MinHeight="300" MinWidth="500" Height="300" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label HorizontalAlignment="Center" HorizontalContentAlignment="Center"
               Grid.Row="0" Grid.Column="0" FontWeight="Bold"
               Padding="2" VerticalAlignment="Bottom">Groups</Label>
        <ListBox Grid.Row="1" SelectionMode="Single" Grid.Column="0" Margin="5" x:Name="groupList" SelectionChanged="GroupsList_SelectionChanged" />

        <DockPanel Grid.Row="2">
            <Button Click="New_Click" IsEnabled="True" x:Name="NewBtn" Width="100" Padding="5" Margin="10">New Group</Button>
            <Button Click="Select_Click" IsEnabled="False" x:Name="SelectBtn" Width="100" Padding="5" Margin="10">Select >></Button>
            <TextBox x:Name="SelectedGroup" IsReadOnly="True"></TextBox>
        </DockPanel>

        <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" HorizontalContentAlignment="Center"
                Width="200" Height="30" x:Name="submitButton" Content="Done!" Click="submitButton_Click" />
    </Grid>
</Window>
